package com.cskaoyan.user.converter;

import com.cskaoyan.user.dal.entitys.Member;
import com.cskaoyan.user.dto.UserLoginResponse;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.Mappings;

/**
 * @author xD
 */
@Mapper(componentModel = "spring")
public interface UserLoginConverter {

    @Mappings({
            @Mapping(source ="token", target ="token")
    })
    UserLoginResponse userLoginConverter(Member member, String token);
}
